<?php	//Exmaple
	$Tquote=0;	
	$msg="";
if(isset($_POST["weight"]))
{
    require("ups.php");
    $rate = new Ups;
    $rate->upsProduct($PT); // See upsProduct() function for codes
    $rate->origin($Ozip, $Corigin); // Use ISO country codes!
    $rate->dest($Dzip, $Cdestination); // Use ISO country codes!
    $rate->rate(RT); // See the rate() function for codes
    $rate->container($CT); // See the container() function for codes
    $rate->weight($weight);// In pounds
    $rate->rescom($AT); // See the rescom() function for codes
    $quote = $rate->getQuote();	
	//echo (float)$quote;
	$typ=gettype($quote);
	if($typ=="string")	
	$msg="Error: ".$quote;	
    $Tquote=(float)$quote*(float)$numpacks;	
}
?>
<style type="text/css">
<!--
body,td,th {
	color: #FFFFFF;
}
body {
	background-color: #000000;
}
.style2 {font-family: Verdana}
.style12 {font-family: Verdana; font-size: 10px; font-weight: bold; }
.style13 {font-size: 12px}
.style14 {color: #FFFF00}
-->
</style>
<form name="frm" method="post">
<table width="550" border="0">
  <tr>
    <td colspan="3"><div align="center">
      <h2 class="style2">Shipping Cost By UPS </h2>
    </div></td>
    </tr>
  <tr>
    <td width="128"><span class="style12">Product Type</span></td>
    <td colspan="2">
	  <span class="style12">
	  <select name="PT">
	      <option value="1DM">Next Day Air Early AM</option>
	      <option value="1DA">Next Day Air</option>
	      <option value="1DP">Next Day Air Saver</option>
	      <option value="2DM">2nd Day Air Early AM</option>
	      <option value="2DA">2nd Day Air</option>
	      <option value="3DS">3 Day Select</option>
	      <option value="GND">Ground</option>
	      <option value="STD">Canada Standard</option>
	      <option value="XPR">Worldwide Express</option>
	      <option value="XDM">Worldwide Express Plus</option>
	      <option value="XPD">Worldwide Expedited</option>     
        </select>
	  <span class="style13"><span class="style14">**</span>Press <span class="style14">Done</span> when finished.</span> </span></td>
  </tr>
  <tr>
    <td><span class="style12">Zip(Origin)</span></td>
    <td width="78"><input name="Ozip" type="text" size="10" maxlength="6" /></td>
    <td width="330"><span class="style12">Country: 
	    <select name="Corigin">
          <option  value="AX" >ALAND ISLANDS</option>
          <option  value="AL" >ALBANIA</option>
          <option  value="DZ" >ALGERIA</option>
          <option  value="AS" >AMERICAN SAMOA</option>
          <option  value="AD" >ANDORRA</option>
          <option  value="AO" >ANGOLA</option>
          <option  value="AI" >ANGUILLA</option>
          <option  value="AG" >ANTIGUA &amp; BARBUDA</option>
          <option  value="AR" >ARGENTINA</option>
          <option  value="AM" >ARMENIA</option>
          <option  value="AW" >ARUBA</option>
          <option  value="AU" >AUSTRALIA</option>
          <option  value="AT" >AUSTRIA</option>
          <option  value="AZ" >AZERBAIJAN</option>
          <option  value="BS" >BAHAMAS</option>
          <option  value="BH" >BAHRAIN</option>
          <option  value="BD" >BANGLADESH</option>
          <option  value="BB" >BARBADOS</option>
          <option  value="BY" >BELARUS</option>
          <option  value="BE" >BELGIUM</option>
          <option  value="BZ" >BELIZE</option>
          <option  value="BJ" >BENIN</option>
          <option  value="BM" >BERMUDA</option>
          <option  value="BT" >BHUTAN</option>
          <option  value="BO" >BOLIVIA</option>
          <option  value="BA" >BOSNIA</option>
          <option  value="BW" >BOTSWANA</option>
          <option  value="BR" >BRAZIL</option>
          <option  value="VG" >BRITISH VIRGIN ISLES</option>
          <option  value="BN" >BRUNEI</option>
          <option  value="BG" >BULGARIA</option>
          <option  value="BF" >BURKINA FASO</option>
          <option  value="BI" >BURUNDI</option>
          <option  value="KH" >CAMBODIA</option>
          <option  value="CM" >CAMEROON</option>
          <option  value="CA" >CANADA</option>
          <option  value="CV" >CAPE VERDE</option>
          <option  value="KY" >CAYMAN ISLANDS</option>
          <option  value="CF" >CENTRAL AFRICAN REPUBLIC</option>
          <option  value="TD" >CHAD</option>
          <option  value="CL" >CHILE</option>
          <option  value="CN" >CHINA</option>
          <option  value="CO" >COLOMBIA</option>
          <option  value="CG" >CONGO</option>
          <option  value="CK" >COOK ISLANDS</option>
          <option  value="CR" >COSTA RICA</option>
          <option  value="HR" >CROATIA</option>
          <option  value="CY" >CYPRUS</option>
          <option  value="CZ" >CZECH REPUBLIC</option>
          <option  value="DK" >DENMARK</option>
          <option  value="DJ" >DJIBOUTI</option>
          <option  value="DM" >DOMINICA</option>
          <option  value="DO" >DOMINICAN REPUBLIC</option>
          <option  value="EC" >ECUADOR</option>
          <option  value="EG" >EGYPT</option>
          <option  value="SV" >EL SALVADOR</option>
          <option  value="GQ" >EQUATORIAL GUINEA</option>
          <option  value="ER" >ERITREA</option>
          <option  value="EE" >ESTONIA</option>
          <option  value="ET" >ETHIOPIA</option>
          <option  value="FO" >FAEROE ISLANDS</option>
          <option  value="FJ" >FIJI</option>
          <option  value="FI" >FINLAND</option>
          <option  value="FR" >FRANCE</option>
          <option  value="GF" >FRENCH GUIANA</option>
          <option  value="PF" >FRENCH POLYNESIA</option>
          <option  value="GA" >GABON</option>
          <option  value="GM" >GAMBIA</option>
          <option  value="GE" >GEORGIA</option>
          <option  value="DE" >GERMANY</option>
          <option  value="GH" >GHANA</option>
          <option  value="GI" >GIBRALTAR</option>
          <option  value="GR" >GREECE</option>
          <option  value="GL" >GREENLAND</option>
          <option  value="GD" >GRENADA</option>
          <option  value="GP" >GUADELOUPE</option>
          <option  value="GU" >GUAM</option>
          <option  value="GT" >GUATEMALA</option>
          <option  value="GN" >GUINEA</option>
          <option  value="GW" >GUINEA-BISSAU</option>
          <option  value="GY" >GUYANA</option>
          <option  value="HT" >HAITI</option>
          <option  value="HN" >HONDURAS</option>
          <option  value="HK" >HONG KONG</option>
          <option  value="HU" >HUNGARY</option>
          <option  value="IS" >ICELAND</option>
          <option  value="IN" >INDIA</option>
          <option  value="ID" >INDONESIA</option>
          <option  value="IQ" >IRAQ</option>
          <option  value="IE" >IRELAND</option>
          <option  value="IL" >ISRAEL</option>
          <option  value="IT" >ITALY</option>
          <option  value="CI" >IVORY COAST</option>
          <option  value="JM" >JAMAICA</option>
          <option  value="JP" >JAPAN</option>
          <option  value="JO" >JORDAN</option>
          <option  value="KZ" >KAZAKHSTAN</option>
          <option  value="KE" >KENYA</option>
          <option  value="KI" >KIRIBATI</option>
          <option  value="KW" >KUWAIT</option>
          <option  value="KG" >KYRGYZSTAN</option>
          <option  value="LA" >LAOS</option>
          <option  value="LV" >LATVIA</option>
          <option  value="LB" >LEBANON</option>
          <option  value="LS" >LESOTHO</option>
          <option  value="LR" >LIBERIA</option>
          <option  value="LI" >LIECHTENSTEIN</option>
          <option  value="LT" >LITHUANIA</option>
          <option  value="LU" >LUXEMBOURG</option>
          <option  value="MO" >MACAU</option>
          <option  value="MK" >MACEDONIA(FYROM)</option>
          <option  value="MG" >MADAGASCAR</option>
          <option  value="MW" >MALAWI</option>
          <option  value="MY" >MALAYSIA</option>
          <option  value="MV" >MALDIVES</option>
          <option  value="ML" >MALI</option>
          <option  value="MT" >MALTA</option>
          <option  value="MH" >MARSHALL ISLANDS</option>
          <option  value="MQ" >MARTINIQUE</option>
          <option  value="MR" >MAURITANIA</option>
          <option  value="MU" >MAURITIUS</option>
          <option  value="MX" >MEXICO</option>
          <option  value="FM" >MICRONESIA</option>
          <option  value="MD" >MOLDOVA</option>
          <option  value="MC" >MONACO</option>
          <option  value="MN" >MONGOLIA</option>
          <option  value="MS" >MONTSERRAT</option>
          <option  value="MA" >MOROCCO</option>
          <option  value="MZ" >MOZAMBIQUE</option>
          <option  value="MP" >N. MARIANA ISLANDS</option>
          <option  value="NA" >NAMIBIA</option>
          <option  value="NP" >NEPAL</option>
          <option  value="NL" >NETHERLANDS</option>
          <option  value="AN" >NETHERLANDS ANTILLES</option>
          <option  value="NC" >NEW CALEDONIA</option>
          <option  value="NZ" >NEW ZEALAND</option>
          <option  value="NI" >NICARAGUA</option>
          <option  value="NE" >NIGER</option>
          <option  value="NG" >NIGERIA</option>
          <option  value="NF" >NORFOLK ISLAND</option>
          <option  value="NO" >NORWAY</option>
          <option  value="OM" >OMAN</option>
          <option  value="PK" >PAKISTAN</option>
          <option  value="PW" >PALAU</option>
          <option  value="PA" >PANAMA</option>
          <option  value="PG" >PAPUA NEW GUINEA</option>
          <option  value="PY" >PARAGUAY</option>
          <option  value="PE" >PERU</option>
          <option  value="PH" >PHILIPPINES</option>
          <option  value="PL" >POLAND</option>
          <option  value="PT" >PORTUGAL</option>
          <option  value="PR" >PUERTO RICO</option>
          <option  value="QA" >QATAR</option>
          <option  value="RE" >REUNION</option>
          <option  value="RO" >ROMANIA</option>
          <option  value="RU" >RUSSIA</option>
          <option  value="RW" >RWANDA</option>
          <option  value="SM" >SAN MARINO</option>
          <option  value="SA" >SAUDI ARABIA</option>
          <option  value="SN" >SENEGAL</option>
          <option  value="CS" >SERBIA AND MONTENEGRO</option>
          <option  value="SC" >SEYCHELLES</option>
          <option  value="SL" >SIERRA LEONE</option>
          <option  value="SG" >SINGAPORE</option>
          <option  value="SK" >SLOVAKIA</option>
          <option  value="SI" >SLOVENIA</option>
          <option  value="SB" >SOLOMON ISLANDS</option>
          <option  value="ZA" >SOUTH AFRICA</option>
          <option  value="KR" >SOUTH KOREA</option>
          <option  value="ES" >SPAIN</option>
          <option  value="LK" >SRI LANKA</option>
          <option  value="KN" >ST. KITTS &amp; NEVIS</option>
          <option  value="LC" >ST. LUCIA</option>
          <option  value="VC" >ST. VINCENT&#047;GRENADINES</option>
          <option  value="SR" >SURINAME</option>
          <option  value="SZ" >SWAZILAND</option>
          <option  value="SE" >SWEDEN</option>
          <option  value="CH" >SWITZERLAND</option>
          <option  value="SY" >SYRIA</option>
          <option  value="TW" >TAIWAN</option>
          <option  value="TJ" >TAJIKISTAN</option>
          <option  value="TZ" >TANZANIA</option>
          <option  value="TH" >THAILAND</option>
          <option  value="TG" >TOGO</option>
          <option  value="TO" >TONGA</option>
          <option  value="TT" >TRINIDAD &amp; TOBAGO</option>
          <option  value="TN" >TUNISIA</option>
          <option  value="TR" >TURKEY</option>
          <option  value="TM" >TURKMENISTAN</option>
          <option  value="TC" >TURKS &amp; CAICOS ISLANDS</option>
          <option  value="TV" >TUVALU</option>
          <option  value="UG" >UGANDA</option>
          <option  value="UA" >UKRAINE</option>
          <option  value="AE" >UNITED ARAB EMIRATES</option>
          <option  value="GB" >UNITED KINGDOM</option>
          <option  value="US" >UNITED STATES</option>
          <option  value="UY" >URUGUAY</option>
          <option  value="VI" >US VIRGIN ISLANDS</option>
          <option  value="UZ" >UZBEKISTAN</option>
          <option  value="VU" >VANUATU</option>
          <option  value="VE" >VENEZUELA</option>
          <option  value="VN" >VIETNAM</option>
          <option  value="WF" >WALLIS &amp; FUTUNA ISLANDS</option>
          <option  value="WS" >WESTERN SAMOA</option>
          <option  value="YE" >YEMEN</option>
          <option  value="CS" >YUGOSLAVIA</option>
          <option  value="ZM" >ZAMBIA</option>
          <option  value="ZW" >ZIMBABWE</option>
        </select>
    </span></td>
  </tr>
  <tr>
    <td><span class="style12">Zip(Destination)</span></td>
    <td><input name="Dzip" type="text" size="10" maxlength="6" /></td>
    <td><span class="style12">Country:
        <select name="Cdestination">
          <option  value="AX" >ALAND ISLANDS</option>
          <option  value="AL" >ALBANIA</option>
          <option  value="DZ" >ALGERIA</option>
          <option  value="AS" >AMERICAN SAMOA</option>
          <option  value="AD" >ANDORRA</option>
          <option  value="AO" >ANGOLA</option>
          <option  value="AI" >ANGUILLA</option>
          <option  value="AG" >ANTIGUA &amp; BARBUDA</option>
          <option  value="AR" >ARGENTINA</option>
          <option  value="AM" >ARMENIA</option>
          <option  value="AW" >ARUBA</option>
          <option  value="AU" >AUSTRALIA</option>
          <option  value="AT" >AUSTRIA</option>
          <option  value="AZ" >AZERBAIJAN</option>
          <option  value="BS" >BAHAMAS</option>
          <option  value="BH" >BAHRAIN</option>
          <option  value="BD" >BANGLADESH</option>
          <option  value="BB" >BARBADOS</option>
          <option  value="BY" >BELARUS</option>
          <option  value="BE" >BELGIUM</option>
          <option  value="BZ" >BELIZE</option>
          <option  value="BJ" >BENIN</option>
          <option  value="BM" >BERMUDA</option>
          <option  value="BT" >BHUTAN</option>
          <option  value="BO" >BOLIVIA</option>
          <option  value="BA" >BOSNIA</option>
          <option  value="BW" >BOTSWANA</option>
          <option  value="BR" >BRAZIL</option>
          <option  value="VG" >BRITISH VIRGIN ISLES</option>
          <option  value="BN" >BRUNEI</option>
          <option  value="BG" >BULGARIA</option>
          <option  value="BF" >BURKINA FASO</option>
          <option  value="BI" >BURUNDI</option>
          <option  value="KH" >CAMBODIA</option>
          <option  value="CM" >CAMEROON</option>
          <option  value="CA" >CANADA</option>
          <option  value="CV" >CAPE VERDE</option>
          <option  value="KY" >CAYMAN ISLANDS</option>
          <option  value="CF" >CENTRAL AFRICAN REPUBLIC</option>
          <option  value="TD" >CHAD</option>
          <option  value="CL" >CHILE</option>
          <option  value="CN" >CHINA</option>
          <option  value="CO" >COLOMBIA</option>
          <option  value="CG" >CONGO</option>
          <option  value="CK" >COOK ISLANDS</option>
          <option  value="CR" >COSTA RICA</option>
          <option  value="HR" >CROATIA</option>
          <option  value="CY" >CYPRUS</option>
          <option  value="CZ" >CZECH REPUBLIC</option>
          <option  value="DK" >DENMARK</option>
          <option  value="DJ" >DJIBOUTI</option>
          <option  value="DM" >DOMINICA</option>
          <option  value="DO" >DOMINICAN REPUBLIC</option>
          <option  value="EC" >ECUADOR</option>
          <option  value="EG" >EGYPT</option>
          <option  value="SV" >EL SALVADOR</option>
          <option  value="GQ" >EQUATORIAL GUINEA</option>
          <option  value="ER" >ERITREA</option>
          <option  value="EE" >ESTONIA</option>
          <option  value="ET" >ETHIOPIA</option>
          <option  value="FO" >FAEROE ISLANDS</option>
          <option  value="FJ" >FIJI</option>
          <option  value="FI" >FINLAND</option>
          <option  value="FR" >FRANCE</option>
          <option  value="GF" >FRENCH GUIANA</option>
          <option  value="PF" >FRENCH POLYNESIA</option>
          <option  value="GA" >GABON</option>
          <option  value="GM" >GAMBIA</option>
          <option  value="GE" >GEORGIA</option>
          <option  value="DE" >GERMANY</option>
          <option  value="GH" >GHANA</option>
          <option  value="GI" >GIBRALTAR</option>
          <option  value="GR" >GREECE</option>
          <option  value="GL" >GREENLAND</option>
          <option  value="GD" >GRENADA</option>
          <option  value="GP" >GUADELOUPE</option>
          <option  value="GU" >GUAM</option>
          <option  value="GT" >GUATEMALA</option>
          <option  value="GN" >GUINEA</option>
          <option  value="GW" >GUINEA-BISSAU</option>
          <option  value="GY" >GUYANA</option>
          <option  value="HT" >HAITI</option>
          <option  value="HN" >HONDURAS</option>
          <option  value="HK" >HONG KONG</option>
          <option  value="HU" >HUNGARY</option>
          <option  value="IS" >ICELAND</option>
          <option  value="IN" >INDIA</option>
          <option  value="ID" >INDONESIA</option>
          <option  value="IQ" >IRAQ</option>
          <option  value="IE" >IRELAND</option>
          <option  value="IL" >ISRAEL</option>
          <option  value="IT" >ITALY</option>
          <option  value="CI" >IVORY COAST</option>
          <option  value="JM" >JAMAICA</option>
          <option  value="JP" >JAPAN</option>
          <option  value="JO" >JORDAN</option>
          <option  value="KZ" >KAZAKHSTAN</option>
          <option  value="KE" >KENYA</option>
          <option  value="KI" >KIRIBATI</option>
          <option  value="KW" >KUWAIT</option>
          <option  value="KG" >KYRGYZSTAN</option>
          <option  value="LA" >LAOS</option>
          <option  value="LV" >LATVIA</option>
          <option  value="LB" >LEBANON</option>
          <option  value="LS" >LESOTHO</option>
          <option  value="LR" >LIBERIA</option>
          <option  value="LI" >LIECHTENSTEIN</option>
          <option  value="LT" >LITHUANIA</option>
          <option  value="LU" >LUXEMBOURG</option>
          <option  value="MO" >MACAU</option>
          <option  value="MK" >MACEDONIA(FYROM)</option>
          <option  value="MG" >MADAGASCAR</option>
          <option  value="MW" >MALAWI</option>
          <option  value="MY" >MALAYSIA</option>
          <option  value="MV" >MALDIVES</option>
          <option  value="ML" >MALI</option>
          <option  value="MT" >MALTA</option>
          <option  value="MH" >MARSHALL ISLANDS</option>
          <option  value="MQ" >MARTINIQUE</option>
          <option  value="MR" >MAURITANIA</option>
          <option  value="MU" >MAURITIUS</option>
          <option  value="MX" >MEXICO</option>
          <option  value="FM" >MICRONESIA</option>
          <option  value="MD" >MOLDOVA</option>
          <option  value="MC" >MONACO</option>
          <option  value="MN" >MONGOLIA</option>
          <option  value="MS" >MONTSERRAT</option>
          <option  value="MA" >MOROCCO</option>
          <option  value="MZ" >MOZAMBIQUE</option>
          <option  value="MP" >N. MARIANA ISLANDS</option>
          <option  value="NA" >NAMIBIA</option>
          <option  value="NP" >NEPAL</option>
          <option  value="NL" >NETHERLANDS</option>
          <option  value="AN" >NETHERLANDS ANTILLES</option>
          <option  value="NC" >NEW CALEDONIA</option>
          <option  value="NZ" >NEW ZEALAND</option>
          <option  value="NI" >NICARAGUA</option>
          <option  value="NE" >NIGER</option>
          <option  value="NG" >NIGERIA</option>
          <option  value="NF" >NORFOLK ISLAND</option>
          <option  value="NO" >NORWAY</option>
          <option  value="OM" >OMAN</option>
          <option  value="PK" >PAKISTAN</option>
          <option  value="PW" >PALAU</option>
          <option  value="PA" >PANAMA</option>
          <option  value="PG" >PAPUA NEW GUINEA</option>
          <option  value="PY" >PARAGUAY</option>
          <option  value="PE" >PERU</option>
          <option  value="PH" >PHILIPPINES</option>
          <option  value="PL" >POLAND</option>
          <option  value="PT" >PORTUGAL</option>
          <option  value="PR" >PUERTO RICO</option>
          <option  value="QA" >QATAR</option>
          <option  value="RE" >REUNION</option>
          <option  value="RO" >ROMANIA</option>
          <option  value="RU" >RUSSIA</option>
          <option  value="RW" >RWANDA</option>
          <option  value="SM" >SAN MARINO</option>
          <option  value="SA" >SAUDI ARABIA</option>
          <option  value="SN" >SENEGAL</option>
          <option  value="CS" >SERBIA AND MONTENEGRO</option>
          <option  value="SC" >SEYCHELLES</option>
          <option  value="SL" >SIERRA LEONE</option>
          <option  value="SG" >SINGAPORE</option>
          <option  value="SK" >SLOVAKIA</option>
          <option  value="SI" >SLOVENIA</option>
          <option  value="SB" >SOLOMON ISLANDS</option>
          <option  value="ZA" >SOUTH AFRICA</option>
          <option  value="KR" >SOUTH KOREA</option>
          <option  value="ES" >SPAIN</option>
          <option  value="LK" >SRI LANKA</option>
          <option  value="KN" >ST. KITTS &amp; NEVIS</option>
          <option  value="LC" >ST. LUCIA</option>
          <option  value="VC" >ST. VINCENT&#047;GRENADINES</option>
          <option  value="SR" >SURINAME</option>
          <option  value="SZ" >SWAZILAND</option>
          <option  value="SE" >SWEDEN</option>
          <option  value="CH" >SWITZERLAND</option>
          <option  value="SY" >SYRIA</option>
          <option  value="TW" >TAIWAN</option>
          <option  value="TJ" >TAJIKISTAN</option>
          <option  value="TZ" >TANZANIA</option>
          <option  value="TH" >THAILAND</option>
          <option  value="TG" >TOGO</option>
          <option  value="TO" >TONGA</option>
          <option  value="TT" >TRINIDAD &amp; TOBAGO</option>
          <option  value="TN" >TUNISIA</option>
          <option  value="TR" >TURKEY</option>
          <option  value="TM" >TURKMENISTAN</option>
          <option  value="TC" >TURKS &amp; CAICOS ISLANDS</option>
          <option  value="TV" >TUVALU</option>
          <option  value="UG" >UGANDA</option>
          <option  value="UA" >UKRAINE</option>
          <option  value="AE" >UNITED ARAB EMIRATES</option>
          <option  value="GB" >UNITED KINGDOM</option>
          <option  value="US" >UNITED STATES</option>
          <option  value="UY" >URUGUAY</option>
          <option  value="VI" >US VIRGIN ISLANDS</option>
          <option  value="UZ" >UZBEKISTAN</option>
          <option  value="VU" >VANUATU</option>
          <option  value="VE" >VENEZUELA</option>
          <option  value="VN" >VIETNAM</option>
          <option  value="WF" >WALLIS &amp; FUTUNA ISLANDS</option>
          <option  value="WS" >WESTERN SAMOA</option>
          <option  value="YE" >YEMEN</option>
          <option  value="CS" >YUGOSLAVIA</option>
          <option  value="ZM" >ZAMBIA</option>
          <option  value="ZW" >ZIMBABWE</option>
        </select>
    </span></td>
  </tr>
  <tr>
    <td><span class="style12">Rate For:</span></td>
    <td colspan="2">
	  <span class="style12">
	  <select name="RT">
	      <option value="RDP">Regular+Daily+Pickup</option>
	      <option value="OCA">On+Call+Air</option>
	      <option value="OTP">One+Time+Pickup</option>
	      <option value="LC">Letter+Center</option>
	      <option value="CC">Customer+Counter</option>
        </select>
	  </span> </td>
  </tr>
  <tr>
    <td><span class="style12">Container Type</span></td>
    <td colspan="2">
	  <span class="style12">
	  <select name="CT">
	      <option value="CP">Customer Packaging</option>
	      <option value="ULE">UPS Letter Envelope</option>
	      <option value="UT">UPS Tube</option>
	      <option value="UEB">UPS Express Box</option>
	      <option value="UW25">UPS Worldwide 25 kilo</option>
	      <option value="UW10">UPS Worldwide 10 kilo</option>
        </select>
	  </span> </td>
  </tr>
  <tr>
    <td><span class="style12">Address Type </span></td>
    <td colspan="2">
	  <span class="style12">
	  <select name="AT">
	      <option value="RES">Residential Address</option>
	      <option value="COM">Commercial Address</option>
        </select>
	  </span> </td>
  </tr>
  <tr>
    <td><span class="style12">Weight(In pounds.)</span></td>
    <td colspan="2"><input name="weight" type="text" /></td>
  </tr>
  <tr>
    <td><span class="style12">No of Packs </span></td>
    <td><input name="numpacks" type="text" size="5" value="<?php echo $numpacks;?>"/></td>
    <td><span class="style12">Shipping Charges(Total):<span class="style13">$</span> 
        <input name="shipping" type="text" value="<?php echo $Tquote;?>" size="20" />
    </span></td>
  </tr>
  <tr>
    <td><div align="right">
      <input type="button" name="Button" value="Done" onclick="javascript: reflectvalue();"/>
    </div></td>
    <td><input name="Calculate" type="submit" value="Calculate" /></td>
    <td><span class="style14"><?php echo $msg;?></span></td>
  </tr>
</table>
</form>
<script type="text/javascript">
function reflectvalue()
{
window.opener.document.frm.<?php echo $cont;?>.value=document.frm.shipping.value;
window.close('ups_ship.php');
}
</script>